import axios from '@/axios'

export function getQaInfoList(params) {
  return axios({
    url: 'task/tcQaInfo/personalPanel',
    method: 'get',
    params,
  })
}
//新增任务质量单
export function addQaInfo(data) {
  return axios({
    url: 'task/tcQaInfo',
    method: 'post',
    data,
  })
}
//查询任务质量单列表
export function getQaInfoTableData({ params, data }) {
  return axios({
    url: 'task/tcQaInfo/list',
    method: 'post',
    params,
    data,
  })
}
//删除任务质量单
export function deleteTcQaInfo(qaId) {
  return axios({
    url: `/task/tcQaInfo/${qaId}`,
    method: 'delete',
  })
}
//获取任务质量单详细信息-根据qaId查询编辑详情
export function getTcQaInfo(qaId) {
  return axios({
    url: `/task/tcQaInfo/${qaId}`,
    method: 'get',
  })
}
//修改任务质量单
export function editTcQaInfo(data) {
  return axios({
    url: `/task/tcQaInfo`,
    method: 'put',
    data,
  })
}

export function getProjectFolderId(projectId) {
  return axios({
    url: `/task/tcTaskProject/getProjectFolderId/${projectId}`,
    method: 'get',
  })
}
